#include <QApplication>
#include <QMessageBox>
#include <QPushButton>
#include "ftwindow.h"


void testV()
{
    QVariant v;
    QMap<QString, QVariant> m;
    m.insert("hello", QVariant("hello"));
    m.insert("world", QVariant("world"));
    v.setValue(m);

    if (v.canConvert<QMap<QString, QVariant>>())
    {
        const auto m2 = v.value<QMap<QString, QVariant>>();
        qInfo() << m2;
    }
    else
    {
        qInfo() << "error to convert ";
    }
}

int main(int argc, char* argv[])
{
    //testV();
    QApplication a(argc, argv);
    auto w = new FtWindow();
    w->setWindowTitle("application");
    w->resize(800, 600);
    w->show();
    return QApplication::exec();
}
